<?php
$dsn = "mysql:Server=localhost;Database=blog";
$db = new PDO($dsn, "root", "123456");
var_dump($db);